package com.ruoyi.ies.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ies.mapper.EmployeeFilesMapper;
import com.ruoyi.ies.domain.EmployeeFiles;
import com.ruoyi.ies.service.IEmployeeFilesService;

/**
 * 员工信息Service业务层处理
 * 
 * @author July
 * @date 2023-06-09
 */
@Service
public class EmployeeFilesServiceImpl implements IEmployeeFilesService 
{
    @Autowired
    private EmployeeFilesMapper employeeFilesMapper;

    /**
     * 查询员工信息
     * 
     * @param id 员工信息主键
     * @return 员工信息
     */
    @Override
    public EmployeeFiles selectEmployeeFilesById(Long id)
    {
        return employeeFilesMapper.selectEmployeeFilesById(id);
    }

    /**
     * 查询员工信息列表
     * 
     * @param employeeFiles 员工信息
     * @return 员工信息
     */
    @Override
    public List<EmployeeFiles> selectEmployeeFilesList(EmployeeFiles employeeFiles)
    {
        return employeeFilesMapper.selectEmployeeFilesList(employeeFiles);
    }

    /**
     * 新增员工信息
     * 
     * @param employeeFiles 员工信息
     * @return 结果
     */
    @Override
    public int insertEmployeeFiles(EmployeeFiles employeeFiles)
    {
        return employeeFilesMapper.insertEmployeeFiles(employeeFiles);
    }

    /**
     * 修改员工信息
     * 
     * @param employeeFiles 员工信息
     * @return 结果
     */
    @Override
    public int updateEmployeeFiles(EmployeeFiles employeeFiles)
    {
        return employeeFilesMapper.updateEmployeeFiles(employeeFiles);
    }

    /**
     * 批量删除员工信息
     * 
     * @param ids 需要删除的员工信息主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeFilesByIds(Long[] ids)
    {
        return employeeFilesMapper.deleteEmployeeFilesByIds(ids);
    }

    /**
     * 删除员工信息信息
     * 
     * @param id 员工信息主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeFilesById(Long id)
    {
        return employeeFilesMapper.deleteEmployeeFilesById(id);
    }
}
